package com.spzx.order.api.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.spzx.common.core.web.domain.BaseEntity;

import java.math.BigDecimal;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 订单项信息
 * </p>
 *
 * @author atguigu
 * @since 2024-11-20
 */
@Getter
@Setter
@TableName("order_item")
@Schema(description = "订单项信息")
public class OrderItem extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @Schema(description = "order_id")
    private Long orderId;

    @Schema(description = "商品sku编号")
    private Long skuId;

    @Schema(description = "商品sku名字")
    private String skuName;

    @Schema(description = "商品sku图片")
    private String thumbImg;

    @Schema(description = "商品sku价格")
    private BigDecimal skuPrice;

    @Schema(description = "商品购买的数量")
    private Integer skuNum;
}
